package com.axend.aerosense.room.entity;

import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class Height {
    private int footSize;
    private int inchSize;

    public String toSeverString(){
        if(0 >= footSize && 0 >= inchSize){
            return "";
        }
        return footSize + "-" + inchSize;
    }

    @Override
    public String toString() {
        if(0 >= footSize && 0 >= inchSize){
            return "";
        }
        return footSize + " ft " + inchSize + " in";
    }
}
